<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Login</title>
</head>
{% if login %}
    <script type="text/javascript">
        Alert.showMsg("错误!!用户名或密码错误!");
        location.href="/blog/login/"
    </script>
{% endif %}
<body>
    <div class="admin-ht" style="background: url(/static/images/lo.jpg);">
        <div class="adminBord">
            <h1>博客登录</h1>
        <h4>{{ nowtime }}</h4>
            <form action="{% url 'blog:login' %}" method="post">
                {% csrf_token %}
                {{uf.as_p}}
                <input type="submit" value="登录" />
            </form>
        </div>
    </div>
</body>
</html>
